## S3 method for class 'PerFit':
plot(x, cutoff.obj=NULL,
ModelFit="NonParametric", Nreps=1000,
IP=x$IP, IRT.PModel=x$IRT.PModel, Ability=x$Ability,
Ability.PModel=x$Ability.PModel, mu=0, sigma=1,
Blvl = 0.05, Breps = 1000, CIlvl = 0.95,
UDlvl = NA,
Type="Density", Both.scale=TRUE, Cutoff=TRUE, Cutoff.int=TRUE,
Flagged.ticks = TRUE,
Xlabel=NA, Xcex=1.5, title=NA, Tcex=1.5,
col.area="lightpink", col.hist="lightblue", col.int="darkgreen",
col.ticks="red", ...)"NonParametric" (default) and "Parametric".x$IP."ModelFit=Parametric" or if the person fit statistic is parametric). Default is x$IRT.PModel.x$Ability."ModelFit=Parametric" or if the person fit statistic is parametric). Default is x$Ability.PModel.method="BM". Default is 0.method="BM". Default is 1."Histogram", "Density" (default), "Both".TRUE.TRUE.TRUE.TRUE.plot.x. A histogram, density, or a combination of both displays is possible.
The cutoff score may be provided by means of the cutoff.obj object, otherwise it is internally computed (for which the function parameters ModelFit through CIlvl are required; see cutoff for more details). The value of the cutoff is superimposed to the plot when Cutoff=TRUE. In this case, the adequate "flagging region" is colored, thus indicating the range of values for which the person-fit statistic flags respondents as potentially displaying aberrant behavior. The option Both.scale was introduced to help to better tune the scale of the y-axis. Furthermore, the percentile confidence interval for the cutoff value (with confidence level defined by the cutoff.obj) is displayed in the x-axis, and ticks marking the flagged respondents are display on the top of the plot.cutoff, flagged.resp, PRFplot# Load the inadequacy scale data (dichotomous item scores):
data(InadequacyData)
# Compute the ZU3 scores:
ZU3.out <- ZU3(InadequacyData)
# Plot the sampling distribution of the ZU3 scores, with cutoff value based on a nominal 5% level,
# and 90% confidence interval:
plot(ZU3.out, Type="Both", Blvl=.05, CIlvl = 0.90)Run the code above in your browser using DataLab